package com.weixing.mall.provider.controller.front;

import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.base.wrapper.ResultUtil;
import com.weixing.mall.core.annotation.NoRepeatSubmit;
import com.weixing.mall.provider.model.dto.cms.WebsiteInfoDto;
import com.weixing.mall.provider.service.IWebsiteInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName WebsiteInfoController
 * @Description TODO <br/>
 * @Author gjq
 * @Modified By:
 * @Date 2019/9/20
 * @Version 1.0
 **/
@RestController
@RequestMapping("/front/websiteInfo")
@Api(value = "商城基础设置API",tags = "商城基础设置")
public class FrontWebsiteInfoController {

    @Autowired
    private IWebsiteInfoService websiteInfoService;

    @ApiOperation(value = "加载商城基础设置")
    @GetMapping("")
    public Result getWebsiteInfo(){
        return ResultUtil.success(websiteInfoService.selectWebsiteInfo());
    }


}
